package miiteen.customsportal.news.dao;

import org.springframework.stereotype.Repository;
import miiteen.data.dao.impl.BaseDaoImpl;
import miiteen.customsportal.news.beans.NewsInfo;

import java.util.List;
import java.util.Map;

/**
 *Name: CustomsPortal_News_Info
 *Des: -Dao
 *Author: lx
 *Date: 2020-07-13
 */
@Repository("newsInfoDao")
public class NewsInfoDao extends BaseDaoImpl<NewsInfo>{

    @Override
	protected String getMapper() {
		return "miiteen.customsportal.news.beans.NewsInfo";
	}

	public List<NewsInfo> findListByMapPreviousNext(Map<String, Object> conditionMap) {
		List<NewsInfo> list = getSqlSession().selectList(getMapper() + ".findListByMapPreviousNext", conditionMap);
		return list;
	}

	public   List<NewsInfo>  getpage(){
		List<NewsInfo> list = getSqlSession().selectList(getMapper() + ".getpage");
		return list;
	}


}